package part1.oo.ooday05.ooday05test;

public class StaticMethod {
    private int a;
    private static int b;
    public void show(){ //有隐式this
        System.out.println(a);
        System.out.println(b);
    }

    public static void test(){ //没有隐式this
        //System.out.println(a); //编译错误 应为静态方法没有隐式this 所以不能直接访问实例变量
        System.out.println(b);
    }
}
